package com.example.authfeign;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;

@SpringBootApplication  // 作为spring boot项目 启动基础
//@EnableFeignClients
@EnableOAuth2Client     // 受spring oauth2 拦截管控
//@EnableDiscoveryClient
@EnableEurekaClient     // 作为eureka的注册客户端
//@EnableEurekaServer
@MapperScan("com.example.authfeign.mapper")  //加载mybatis的mapper映射接口层
public class AuthFeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthFeignApplication.class, args);
    }

}

